package com.itheima.health.dao;

import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @autahor: csl
 * @date: 2019/7/23
 * @description: 预约dao
 * @version:1.0
 */
public interface OrderDao {
    List<Order> findByOrder(Order order);

    void add(Order order);

    Map<String,Object> findById(Integer id);

    List<Map<String,Object>> findSetmealCount();

    Integer findOrderCountByDate(@Param("today") String today);

    Integer findOrderCountByAfter(@Param("date") String date);

    Integer findVisitsCountByDate(@Param("today") String today);

    Integer findVisitsCountByAfterDate(@Param("date") String date);

    List<Map> findHostSetmeal();
}
